package com.sky.service;

import com.sky.dto.*;
import com.sky.result.PageResult;
import com.sky.vo.OrderStatisticsVO;
import com.sky.vo.OrderSubmitVO;
import com.sky.vo.OrderVO;

public interface OrderService {

    //下单
    OrderSubmitVO submitOrder(OrdersSubmitDTO ordersSubmitDTO);

    //用户历史订单查询
    PageResult userPageQuery(int page, int pageSize, Integer status);

    //查看订单详情
    OrderVO getDetails(Long id);

    //取消订单
    void cancelOrder(Long id);

    //用户再来一单
    void repetition(Long id);

    //商家查询订单
    PageResult conditionSearch(OrdersPageQueryDTO ordersPageQueryDTO);

    //商家订单状态统计
    OrderStatisticsVO statistics();

    //商家确认订单
    void confirm(OrdersConfirmDTO ordersConfirmDTO);

    //商家拒绝订单
    void rejection(OrdersRejectionDTO ordersRejectionDTO);

    //商家取消订单
    void cancel(OrdersCancelDTO ordersCancelDTO);

    //商家派送订单
    void delivery(Long id);

    //商家完成订单
    void finish(Long id);

    //客户催单
    void reminder(Long id);
}
